// 引用nodejs的http内置模块
const http = require('http')

const server = http.createServer((request, response) => {
    let url = request.url;
    response.write(url);
    // 表示响应结束。
    response.end();
})

server.listen(8090, 'localhost', () => {
    console.log('localhost:8090');
})